]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Pass the right number of arguments to exit()
authorOwen Taylor <otaylor@src.gnome.org>
Sun, 2 Nov 2008 04:18:36 +0000 (04:18 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Sun, 2 Nov 2008 04:18:36 +0000 (04:18 +0000)
When using gdb to quit the panel, pass the right number of arguments
to exit(), so that gdb calls it instead of erroring out.

svn path=/trunk/; revision=22

scripts/start-replace

index e28c9e8df7cb9454cf2087791c885c183d3c3694..2bf5f1c69479c460039ecc757d8c5edc396bd820 100755 (executable)
@@ -17,7 +17,7 @@ try:
     for pid in pids:
         subprocess.call(["gdb", "-batch-silent",
                          "-ex", "call panel_session_do_not_restart()",
-                         "-ex", "call exit()",
+                         "-ex", "call exit(0)",
                          "-p", pid], stdout=devnull, stderr=devnull)
     devnull.close()